#define _CRT_SECURE_NO_WARNINGS



#include<iostream>
using namespace std;
int main()
{
    string s;
    cin >> s;
    int i = 0;
    int j = s.size() - 1;
    if (s[i] == s[j])
        cout << "YES";
    else
        cout << "NO";
    return 0;
}